package com.bcxj.servicemap.controller;

import com.bcxj.internalcommon.dto.ResponseResult;
import com.bcxj.internalcommon.response.TrackResponse;
import com.bcxj.servicemap.service.TrackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ClassName: TrackController
 * Package: com.bcxj.servicemap.controller
 * Description:
 *
 * @Author BCXJ
 * @Create 2024/11/2 16:23
 * @Version 1.0
 * @Since 1.0
 */
@RestController
@RequestMapping("/track")
public class TrackController {

    @Autowired
    private TrackService trackService;

    @PostMapping("/add")
    public ResponseResult<TrackResponse> addTrack(String tid) {
        return trackService.add(tid);
    }

}
